cmake_minimum_required (VERSION 2.6)

project (segment_intersection)

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")

set(CMAKE_BUILD_TYPE Release)

find_package(CGAL REQUIRED)

include(${CGAL_USE_FILE})

include_directories(${CGAL_INCLUDE_DIRS})
set (LIBS ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})

#set(CMAKE_BUILD_TYPE RelWithDebInfo)

add_executable (segment_intersection segment_intersection.cpp)
add_executable (test1 test1.cpp)
add_custom_command (
    OUTPUT Test2.class 
    COMMAND javac Test2.java -d ${EXECUTABLE_OUTPUT_PATH}
    DEPENDS Test2.java
    )
add_custom_target (Test2 ALL DEPENDS Test2.class)
add_executable (test3 test3.cpp)
add_executable (check check.cpp)
